<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> 
<title>Jeep内容厨房</title>
<link type="text/css" rel="stylesheet" href="js/zepto.alert.css"/>
<link type="text/css" rel="stylesheet" href="css/css.css"/>
<script type="text/javascript" src="js/zepto.min.js"></script>
<script type="text/javascript" src="js/zepto.alert.js"></script>
<script src="js/Selector.js"></script> 
</head>
<style>
.tblData{width:300px;height:400px; text-align:center; font-size:12px; color:#747474;}
.tblData td{margin:auto; text-align:left; vertical-align:middle;}
.tblData #info{ font-size:10px;position:absolute;width:78px;height:35px; line-height:35px; right:8px; bottom:7px; color:#4d6dc2; background-image:url(images/set.png);}
</style>
<body>
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
<tr><td align="center" valign="top" id="tdNav">
 <?php include "header.html";?>
</td></tr>

<tr><td align="center" valign="top">
<table class="tblData" cellpadding="0" cellspacing="0">
<tr><td height="8"></td></tr>
<tr><td height="235" style="position:relative;"><img id="showImg" src="images/logo.png" width="295" height="235"/><div id="info"> </div></td></tr>
<tr><td height="8"></td></tr>
<tr>
<td valign="top" style="vertical-align:top;"><img src="images/fav.jpg" height="35" onClick="fav();"/>&nbsp;&nbsp;&nbsp;<img src="images/dw.jpg" height="35"  onClick="down();"/></td></tr>
<tr><td height="8"></td></tr>
<tr><td id="author">作者：</td></tr>
<tr><td id="name">名称：</td></tr>
<tr><td id="idid">编号：</td></tr>
<tr><td id="instro">出处说明：</td></tr>
<tr><td id="uploader">上传：</td></tr>
<tr><td id="zhuanTi">专题：</td></tr>
<tr><td height="8"></td></tr>
<tr><td id="limitUse">使用限制：</td></tr>
<tr><td id="avaliDate">使用时限：</td></tr>
</table>
</td></tr>
 
<input type="hidden" name="src" value="m"/>
</table>
 
</td></tr>
</table>
<iframe name="iframeSubmit" style="width:0px; height:0px;display:none;"></iframe>
<script>
 
var gId =0;
function getQueryString(name) {
   var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");
   var r = window.location.search.substr(1).match(reg);
   if (r!=null) return (r[2]); return null;
}
$(function(){
	gId = getQueryString("id");
    getPage("../?act=ajax&op=getFileInfo&src=m&id="+gId);
	});
function down()
{
	window.location.href="../?act=down&id="+gId;
}
function fav()
{
	$.get("../?act=ajax&op=addFav&id="+gId,function(data){
	    if(data.indexOf("ok")!=-1)
		{
			alert("收藏成功");
		}
	});
}

</script>
</body>
</html>